#include "behaviors_replayer.hpp"
#include "config.hpp"

namespace vimock {
behaviors_replayer::behaviors_replayer(behavior_vector behaviors) :
	behaviors(behaviors), current_pos(behaviors->begin()) {
}
object behaviors_replayer::replay(invocation inv) {
	object value_to_return((*current_pos)->replay(inv));
	++current_pos;
	return value_to_return;
}
void behaviors_replayer::verify() {
	if (current_pos != behaviors->end()) {
		config::selected_error_reporter->report_expectation_not_meet();
	}
}
}
